import request from '@/utils/request'

export const proDefList = (current,size,activitiVO) => {
  return request({
    url:'/activity/proDefList',
    method:'post',
    params:{
      current,
      size
    },
    data:activitiVO
  }).then(res => {
    return res
  },error => {
    return error
  })
}

export const addNewApply = (addNewApplyVO) => {
  return request({
    url:'/activity/addNewApply',
    method:'post',
    data:addNewApplyVO
  }).then(res => {
    return res
  },error => {
    return error
  })
}

export const myApplyList = (current,size,username) => {
  return request({
    url:'/activity/myApplyList',
    method:'post',
    params:{
      current,
      size,
      username
    }
  }).then(res => {
    return res
  },error => {
    return error
  })
}

export const myWaitingToDo = (current,size,username) => {
  return request({
    url:'/activity/myWaitingToDo',
    method:'post',
    params:{
      current,
      size,
      username
    }
  }).then(res => {
    return res
  },error => {
    return error
  })
}
